package com.dtx.controller;

import java.util.List;

import com.dtx.dao.UserDao;
import com.dtx.po.MyUser;
import com.dtx.pojo.SelectUserOrdersById;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


@Controller("oneToMoreController")
public class OneToMoreController {

	@Autowired
	private UserDao userDao;

	public void test() {
		//查询一个用户及订单信息
		MyUser auser1 = userDao.selectUserOrdersById1(1);
		System.out.println(auser1);
		System.out.println("===================================");
		MyUser auser2 = userDao.selectUserOrdersById2(1);
		System.out.println(auser2);
		System.out.println("===================================");
		List<SelectUserOrdersById> auser3 = userDao.selectUserOrdersById3(1);
		System.out.println(auser3);
		System.out.println("===================================");
	}
}
